package com.example.lvsuo.service.cxg.impl;

import com.example.lvsuo.mapper.GetNewIdMapper;
import com.example.lvsuo.service.cxg.GetNewIdServlet;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class GetNewIdServletImpl implements GetNewIdServlet {
    @Autowired
    GetNewIdMapper getNewIdMapper;


    @Override
    public int getNewId() {
        return getNewIdMapper.getNewId();
    }
}
